home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1996 #1 / Amiga Plus CD - 1996 - No. 1.iso / pd / grafik / jpeg_v6 / source / jpeg-6 / makefile.mc6 < prev    next >
Makefile  |  1995-07-24  |  13KB  |  232 lines

  1. # Makefile for Independent JPEG Group's software
  2.  
  3. # This makefile is for Microsoft C for MS-DOS, version 6.00A and up.
  4. # Use NMAKE, not Microsoft's brain-damaged MAKE.
  5. # Thanks to Alan Wright and Chris Turner of Olivetti Research Ltd.
  6.  
  7. # Read installation instructions before saying "nmake" !!
  8.  
  9. # You may need to adjust these compiler options:
  10. CFLAGS = -AM -Oecigt -Gs -W3
  11. # -AM medium memory model (or use -AS for small model, if you remove features)
  12. # -Oecigt -Gs  maximum safe optimisation (-Ol has bugs in MSC 6.00A)
  13. # -W3 warning level 3
  14. # You might also want to add -G2 if you have an 80286, etc.
  15. # Generally, we recommend defining any configuration symbols in jconfig.h,
  16. # NOT via -D switches here.
  17.  
  18. # Put here the object file name for the correct system-dependent memory
  19. # manager file.  For DOS, we recommend jmemdos.c and jmemdosa.asm.
  20. # If you change this, you'll need to modify the linker response file
  21. # name list, below, by hand!
  22. SYSDEPMEM= jmemdos.obj jmemdosa.obj
  23.  
  24. # End of configurable options.
  25.  
  26.  
  27. # source files: JPEG library proper
  28. LIBSOURCES= jcapimin.c jcapistd.c jccoefct.c jccolor.c jcdctmgr.c jchuff.c \
  29.         jcinit.c jcmainct.c jcmarker.c jcmaster.c jcomapi.c jcparam.c \
  30.         jcphuff.c jcprepct.c jcsample.c jctrans.c jdapimin.c jdapistd.c \
  31.         jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c jddctmgr.c jdhuff.c \
  32.         jdinput.c jdmainct.c jdmarker.c jdmaster.c jdmerge.c jdphuff.c \
  33.         jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c jfdctfst.c \
  34.         jfdctint.c jidctflt.c jidctfst.c jidctint.c jidctred.c jquant1.c \
  35.         jquant2.c jutils.c jmemmgr.c jmemansi.c jmemname.c jmemnobs.c \
  36.         jmemdos.c
  37. # source files: cjpeg/djpeg/jpegtran applications, also rdjpgcom/wrjpgcom
  38. APPSOURCES= cjpeg.c djpeg.c jpegtran.c cdjpeg.c rdcolmap.c rdswitch.c \
  39.         rdjpgcom.c wrjpgcom.c rdppm.c wrppm.c rdgif.c wrgif.c rdtarga.c \
  40.         wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.c
  41. SOURCES= $(LIBSOURCES) $(APPSOURCES)
  42. # files included by source files
  43. INCLUDES= jchuff.h jdhuff.h jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h \
  44.         jpegint.h jpeglib.h jversion.h cdjpeg.h cderror.h
  45. # documentation, test, and support files
  46. DOCS= README install.doc usage.doc cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 \
  47.         wrjpgcom.1 wizard.doc example.c libjpeg.doc structure.doc \
  48.         coderules.doc filelist.doc change.log
  49. MKFILES= configure makefile.cfg makefile.ansi makefile.unix makefile.bcc \
  50.         makefile.mc6 makefile.dj makefile.wat makcjpeg.st makdjpeg.st \
  51.         makljpeg.st maktjpeg.st makefile.manx makefile.sas makefile.mms \
  52.         makefile.vms makvms.opt
  53. CONFIGFILES= jconfig.cfg jconfig.manx jconfig.sas jconfig.st jconfig.bcc \
  54.         jconfig.mc6 jconfig.dj jconfig.wat jconfig.vms
  55. OTHERFILES= jconfig.doc ckconfig.c ansi2knr.c ansi2knr.1 jmemdosa.asm
  56. TESTFILES= testorig.jpg testimg.ppm testimg.gif testimg.jpg testprog.jpg \
  57.         testimgp.jpg
  58. DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) \
  59.         $(OTHERFILES) $(TESTFILES)
  60. # library object files common to compression and decompression
  61. COMOBJECTS= jcomapi.obj jutils.obj jerror.obj jmemmgr.obj $(SYSDEPMEM)
  62. # compression library object files
  63. CLIBOBJECTS= jcapimin.obj jcapistd.obj jctrans.obj jcparam.obj jdatadst.obj \
  64.         jcinit.obj jcmaster.obj jcmarker.obj jcmainct.obj jcprepct.obj \
  65.         jccoefct.obj jccolor.obj jcsample.obj jchuff.obj jcphuff.obj \
  66.         jcdctmgr.obj jfdctfst.obj jfdctflt.obj jfdctint.obj
  67. # decompression library object files
  68. DLIBOBJECTS= jdapimin.obj jdapistd.obj jdtrans.obj jdatasrc.obj \
  69.         jdmaster.obj jdinput.obj jdmarker.obj jdhuff.obj jdphuff.obj \
  70.         jdmainct.obj jdcoefct.obj jdpostct.obj jddctmgr.obj jidctfst.obj \
  71.         jidctflt.obj jidctint.obj jidctred.obj jdsample.obj jdcolor.obj \
  72.         jquant1.obj jquant2.obj jdmerge.obj
  73. # These objectfiles are included in libjpeg.lib
  74. LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
  75. # object files for sample applications (excluding library files)
  76. COBJECTS= cjpeg.obj rdppm.obj rdgif.obj rdtarga.obj rdrle.obj rdbmp.obj \
  77.         rdswitch.obj cdjpeg.obj
  78. DOBJECTS= djpeg.obj wrppm.obj wrgif.obj wrtarga.obj wrrle.obj wrbmp.obj \
  79.         rdcolmap.obj cdjpeg.obj
  80. TROBJECTS= jpegtran.obj rdswitch.obj cdjpeg.obj
  81.  
  82. # need linker response file because file list > 128 chars
  83. RFILE = libjpeg.ans
  84.  
  85.  
  86. all: libjpeg.lib cjpeg.exe djpeg.exe jpegtran.exe rdjpgcom.exe wrjpgcom.exe
  87.  
  88. libjpeg.lib: $(LIBOBJECTS) $(RFILE)
  89.     del libjpeg.lib
  90.     lib @$(RFILE) ;
  91.  
  92. # linker response file for building libjpeg.lib
  93. $(RFILE) : Makefile
  94.     del $(RFILE)
  95.     echo libjpeg.lib >$(RFILE)
  96. # silly want-to-create-it prompt:
  97.     echo y >>$(RFILE)
  98.     echo +jcapimin.obj +jcapistd.obj +jctrans.obj +jcparam.obj & >>$(RFILE)
  99.     echo +jdatadst.obj +jcinit.obj +jcmaster.obj +jcmarker.obj & >>$(RFILE)
  100.     echo +jcmainct.obj +jcprepct.obj +jccoefct.obj & >>$(RFILE)
  101.     echo +jccolor.obj +jcsample.obj +jchuff.obj +jcphuff.obj & >>$(RFILE)
  102.     echo +jcdctmgr.obj +jfdctfst.obj +jfdctflt.obj & >>$(RFILE)
  103.     echo +jfdctint.obj +jdapimin.obj +jdapistd.obj & >>$(RFILE)
  104.     echo +jdtrans.obj +jdatasrc.obj +jdmaster.obj +jdinput.obj & >>$(RFILE)
  105.     echo +jdmarker.obj +jdhuff.obj +jdphuff.obj +jdmainct.obj & >>$(RFILE)
  106.     echo +jdcoefct.obj +jdpostct.obj +jddctmgr.obj & >>$(RFILE)
  107.     echo +jidctfst.obj +jidctflt.obj +jidctint.obj & >>$(RFILE)
  108.     echo +jidctred.obj +jdsample.obj +jdcolor.obj +jquant1.obj & >>$(RFILE)
  109.     echo +jquant2.obj +jdmerge.obj +jcomapi.obj +jutils.obj & >>$(RFILE)
  110.     echo +jerror.obj +jmemmgr.obj +jmemdos.obj +jmemdosa.obj >>$(RFILE)
  111.  
  112. cjpeg.exe: $(COBJECTS) libjpeg.lib
  113.     echo $(COBJECTS) >cjpeg.lst
  114.     link /STACK:4096 /EXEPACK @cjpeg.lst, cjpeg.exe, , libjpeg.lib, ;
  115.     del cjpeg.lst
  116.  
  117. djpeg.exe: $(DOBJECTS) libjpeg.lib
  118.     echo $(DOBJECTS) >djpeg.lst
  119.     link /STACK:4096 /EXEPACK @djpeg.lst, djpeg.exe, , libjpeg.lib, ;
  120.     del djpeg.lst
  121.  
  122. jpegtran.exe: $(TROBJECTS) libjpeg.lib
  123.     link /STACK:4096 /EXEPACK $(TROBJECTS), jpegtran.exe, , libjpeg.lib, ;
  124.  
  125. rdjpgcom.exe: rdjpgcom.c
  126.     $(CC) -AS -O -W3 rdjpgcom.c
  127.  
  128. # wrjpgcom needs large model so it can malloc a 64K chunk
  129. wrjpgcom.exe: wrjpgcom.c
  130.     $(CC) -AL -O -W3 wrjpgcom.c
  131.  
  132. jconfig.h: jconfig.doc
  133.     echo You must prepare a system-dependent jconfig.h file.
  134.     echo Please read the installation directions in install.doc.
  135.     exit 1
  136.  
  137. clean:
  138.     del *.obj
  139.     del libjpeg.lib
  140.     del cjpeg.exe
  141.     del djpeg.exe
  142.     del jpegtran.exe
  143.     del rdjpgcom.exe
  144.     del wrjpgcom.exe
  145.     del testout*.*
  146.  
  147. test: cjpeg.exe djpeg.exe jpegtran.exe
  148.     del testout*.*
  149.     djpeg -dct int -ppm -outfile testout.ppm  testorig.jpg
  150.     djpeg -dct int -gif -outfile testout.gif  testorig.jpg
  151.     cjpeg -dct int -outfile testout.jpg  testimg.ppm
  152.     djpeg -dct int -ppm -outfile testoutp.ppm testprog.jpg
  153.     cjpeg -dct int -progressive -opt -outfile testoutp.jpg testimg.ppm
  154.     jpegtran -outfile testoutt.jpg testprog.jpg
  155.     fc /b testimg.ppm testout.ppm
  156.     fc /b testimg.gif testout.gif
  157.     fc /b testimg.jpg testout.jpg
  158.     fc /b testimg.ppm testoutp.ppm
  159.     fc /b testimgp.jpg testoutp.jpg
  160.     fc /b testorig.jpg testoutt.jpg
  161.  
  162.  
  163. jcapimin.obj: jcapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  164. jcapistd.obj: jcapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  165. jccoefct.obj: jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  166. jccolor.obj: jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  167. jcdctmgr.obj: jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  168. jchuff.obj: jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.h
  169. jcinit.obj: jcinit.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  170. jcmainct.obj: jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  171. jcmarker.obj: jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  172. jcmaster.obj: jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  173. jcomapi.obj: jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  174. jcparam.obj: jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  175. jcphuff.obj: jcphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.h
  176. jcprepct.obj: jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  177. jcsample.obj: jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  178. jctrans.obj: jctrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  179. jdapimin.obj: jdapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  180. jdapistd.obj: jdapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  181. jdatadst.obj: jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  182. jdatasrc.obj: jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  183. jdcoefct.obj: jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  184. jdcolor.obj: jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  185. jddctmgr.obj: jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  186. jdhuff.obj: jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.h
  187. jdinput.obj: jdinput.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  188. jdmainct.obj: jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  189. jdmarker.obj: jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  190. jdmaster.obj: jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  191. jdmerge.obj: jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  192. jdphuff.obj: jdphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.h
  193. jdpostct.obj: jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  194. jdsample.obj: jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  195. jdtrans.obj: jdtrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  196. jerror.obj: jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h
  197. jfdctflt.obj: jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  198. jfdctfst.obj: jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  199. jfdctint.obj: jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  200. jidctflt.obj: jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  201. jidctfst.obj: jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  202. jidctint.obj: jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  203. jidctred.obj: jidctred.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  204. jquant1.obj: jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  205. jquant2.obj: jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  206. jutils.obj: jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  207. jmemmgr.obj: jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  208. jmemansi.obj: jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  209. jmemname.obj: jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  210. jmemnobs.obj: jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  211. jmemdos.obj: jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  212. cjpeg.obj: cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  213. djpeg.obj: djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  214. jpegtran.obj: jpegtran.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  215. cdjpeg.obj: cdjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  216. rdcolmap.obj: rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  217. rdswitch.obj: rdswitch.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  218. rdjpgcom.obj: rdjpgcom.c jinclude.h jconfig.h
  219. wrjpgcom.obj: wrjpgcom.c jinclude.h jconfig.h
  220. rdppm.obj: rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  221. wrppm.obj: wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  222. rdgif.obj: rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  223. wrgif.obj: wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  224. rdtarga.obj: rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  225. wrtarga.obj: wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  226. rdbmp.obj: rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  227. wrbmp.obj: wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  228. rdrle.obj: rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  229. wrrle.obj: wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  230. jmemdosa.obj : jmemdosa.asm
  231.     masm /mx $*;
  232.